package com.zr.daoimpl;


import java.util.ArrayList;
import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.zr.dao.SearchQuestionsDao;
import com.zr.model.Cquestion;



@Repository("searchQuestionsDao")
public class SearchQuestionsDaoImpl<T> extends BaseDaoImpl<T> implements SearchQuestionsDao<T>{

	@Override
	public List<Cquestion> getAllQuestions() {
		List<Cquestion> cqs = new ArrayList<Cquestion>();
		String hql = "from Cquestion";
		Query que = this.getCurrentSession().createQuery(hql);
		cqs=que.list();
		return cqs;
	}

	
	
	

}
